package com.PAT.practice01;

import java.util.ArrayList;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2021/11/19/16:07
 * @Description:
 * @Target:
 */
public class 数零壹 {
    public static void main(String[] args) {
        // 我先编写一个10转2吧///

        Scanner input = new Scanner(System.in);
        String ss = input.nextLine();
        int[] ints = GetArrayByInt(GetSumByString(ss));
        System.out.println(ints[0]+" "+ints[1]);
    }



    // 取数操作,输入一个整数,然后返回一个数组
    public static int[] GetArrayByInt(int n){
        int[] arr = new int[2];
        int temp = 0;
        while (n>0){
            temp =  n%2;
            if (temp==0){
                arr[0]++;
            }else {
                arr[1]++;
            }
            n/=2;
        }
        return arr;
    }



    // 对于字符串,首先进来后,我判断是不是字母,如果是则进行计算
    public static int GetSumByString(String ss){
        int sum = 0;
        for (int i = 0; i <= ss.length()-1; i++) {
            if(ss.charAt(i)>='a'&&ss.charAt(i)<='z'){
                sum+=ss.charAt(i)-'a'+1;
            }else if(ss.charAt(i)>='A'&&ss.charAt(i)<='Z'){
                sum+=ss.charAt(i)-'A'+1;
            }
        }
        return sum;

    }


}
